package org.jeecg.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 *
 * 燃烧收益
 *
 */
@Data
@TableName("biz_burn_income")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "biz_burn_income", description = "燃烧收益")
public class BurnIncome {
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    // 用户地址
    @ApiModelProperty(value = "用户地址")
    private String address;

    // 余额
    @ApiModelProperty(value = "余额")
    private Long balance;

    // 冻结额度
    @ApiModelProperty(value = "冻结额度")
    private Long freezingAmount;

    // 更新时间
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date updateTime;

    public BurnIncome() {

    }

    public BurnIncome(String address, Date updateTime) {
        this.address = address;
        this.updateTime = updateTime;
    }
}
